home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / comm / fido / SHELTER275.lha / DOCS / NewCache.DOC < prev    next >
Text File  |  1995-01-10  |  2KB  |  34 lines

  1.  
  2.     I  decided  to  play  with the Cache a bit because I wanted to have more
  3. than  two  phone numbers for a site.  I discovered that, as set up, this was
  4. barely  possible  and  due  to  the  indexing method, could result in source
  5. strings exceeding WPL's internal limits.
  6.  
  7.     Variables  in  the  Cache  are  accessed via an index.  In virtually all
  8. cases  in  the old Cache, this index was the remote.address.  For AKA lists,
  9. it  was  the  primary phone number.  This method results in multiple strings
  10. with a set of duplicate values for every aka listed for a site. A 5K
  11. Cache.cfg would produce a 15K *cache.wpl.
  12.  
  13.     The New Cache uses the simpler approach of an index number of each site.
  14. The  variable  $(SI.$(remote.address)) contains that index number.  There is
  15. an  si  variable for each aka of a site, regardless of site type.  All cache
  16. variables are accessed by referring to this index.
  17.  
  18.     example: $(password.$(si.$(remote.address))) 
  19.  
  20.     This  approach removes the multiple entries for each aka and reduces the
  21. wpl  code  by  at  least 1/3.  A 5K cache.cfg now produces a 10K *cache.wpl.
  22. This  approach  also  makes  cache EDITING much simpler.  CacheEdit.rexx now
  23. allows one to add to, delete or change any site cache item.
  24.  
  25.     The 'altnum' keyword is dropped, in favour of multiple 'number' entries.
  26.  
  27.     Presently the NewCache will be generated if:
  28.         ALT=1 (In GenMailer.rexx)
  29.         NewCache.cfg exists and is newer than *cache.wpl
  30.  
  31.     In the near future , the New cache will be default and all old cache
  32. generation code will be removed.
  33.  
  34.